package alp.starcode.nudtportal.framework.constant;

public enum OrderStatusEnum {
    PAID(1, "已支付"),
    CANCELLED(2, "已取消"),
    PAID_INTO(3, "已到账");

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    Integer value;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    String name;

    OrderStatusEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    public static String getNameByValue(Integer value) {
        OrderStatusEnum[] payModelEnums = values();
        OrderStatusEnum[] var6 = payModelEnums;
        int var5 = payModelEnums.length;
        for (int var4 = 0; var4 < var5; ++var4) {
            OrderStatusEnum payModelEnum = var6[var4];
            if (value.equals(payModelEnum.value)) {
                return payModelEnum.name;
            }
        }
        return null;
    }
}
